package com.jiangkang.example.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_staff")
public class Staff extends Model<Staff> {

    private static final long serialVersionUID = 1L;

    /**
     * 后台管理系统主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 鐢ㄦ埛鍚嶄竴鑸负涓枃
     */
    private String username;

    /**
     * 鐢ㄦ埛鍚嶄竴鑸槸name鐨勮嫳鏂囧悕绉?
     */
    private String realname;

    /**
     * 密码
     */
    private String password;

    /**
     * 该用户是否锁定，0：未锁定，1：锁定
     */
    private Integer lock;

    private String salt;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtUpdate;

    private Integer isDelete;

    /**
     * 0 not admin 1 admin
     */
    private Integer isAdmin;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
